package classes;

public class Player {
	private String name;
	private int score;
	private int lives;
	public Player(String name, int lives) {
		super();
		this.name = name;
		this.score = 0;
		this.lives = lives;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the score
	 */
	public int getScore() {
		return score;	
	}
	/**
	 * @param score the score to set
	 */
	public void addScore(int score) {
		this.score += score;
	}
	/**
	 * @return the lives
	 */
	public int getLives() {
		return lives;
	}
	/**
	 * @param lives the lives to set
	 */
	public void loseLife() {
		this.lives--;
	}
	
}
